home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / MOD.SWG / 0001_669.pas next >
Pascal/Delphi Source File  |  1996-09-04  |  2KB  |  60 lines

  1. --------M-669-------------------------------
  2.  
  3. The .669 format is a module format for digital music.
  4.  
  5. OFFSET              Count TYPE   Description
  6. 0000h                   1 word   ID=6669h
  7. 0002h                 108 byte   ASCII song message
  8. 006Eh                   1 byte   Number of saved samples (0-40h)
  9.                                  ="NOS"
  10. 006Fh                   1 byte   Number of saved patterns (0-80h)
  11.                                  ="NOP"
  12. 0070h                   1 byte   Loop order number
  13. 0071h                 128 byte   Order list
  14. 00F1h                 128 byte   Tempo list for patterns
  15. 0171h                 128 byte   Break location list for patterns
  16. 01F1h               "NOS" rec    Sample data
  17.                                  The sample data is in the file
  18.                                  for "NOS"
  19.                        13 byte   ASCIIZ filename of instrument
  20.                         1 dword  Length of instrument sample
  21.                         1 dword  Offset of beginning of loop
  22.                         1 dword  Offset of end of loop
  23. 01F1h+          "NOP"*600 rec    The note patterns
  24.  "NOS"*19h                       Those patterns are repeated for each row,
  25.                                  and the array of these is repeated 64 times
  26.                                  for each pattern.
  27.                         3 byte   Note(see table 0000)
  28. 01F1h+                  ? byte   Sample data (unsigned)
  29.  "NOS"*0x19+
  30.  "NOP"*0x600
  31.  
  32. (Table 0000)
  33. 669 Note format
  34. Each note looks like this :
  35. BYTE[0]: BYTE[1]: BYTE[2]:
  36. nnnnnnii iiiivvvv ccccdddd
  37.  
  38.   n : note value
  39.   i : 6-bit instrument number
  40.   v : 4-bit volume
  41.   c : command data (Protracker format mapped) :
  42.      0 = a
  43.      1 = b
  44.      2 = c
  45.      3 = d
  46.      4 = e
  47.      5 = f
  48.      d : command value (Protracker format)
  49.  
  50. Special values for byte 0 :
  51.   0FEh : no note, only volume
  52.   0FFh : no note or no command, if byte 2 = 0FFh
  53.  
  54. EXTENSION:669
  55. OCCURENCES:PC
  56. SEE ALSO:MOD
  57. PROGRAMS:669 Mod Composer, DMP
  58. VALIDATION:
  59.  
  60.